#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <math.h>

int main() {
    float a = 0, b = 0, c = 0, temp = 0;
    while (scanf("%f %f %f", &a, &b, &c) != EOF) {
        double Flag = b * b - 4 * a * c;
        if (a == 0) {
            printf("Not quadratic equation");
        }
        else {
            if (Flag == 0) {
                double x = -b / (2 * a);
                if (x == 0) {
                    printf("x1=x2=0.00\n");
                }
                else {
                    printf("x1=x2=%.2lf\n", x);
                }
            }
            else if (Flag > 0) {
                double x1 = (-b + sqrt(Flag)) / (2 * a);
                double x2 = (-b - sqrt(Flag)) / (2 * a);
                if (x1 > x2) {
                    temp = x2;
                    x2 = x1;
                    x1 = temp;
                }
                printf("x1=%.2lf;x2=%.2lf\n", x1, x2);
            }
            else if (Flag < 0) {
                double shi = 0;
                if (b == 0) {
                    shi = b / (2 * a);
                }
                else {
                    shi = -b / (2 * a);
                }
                double xu = sqrt(-Flag) / (2 * a);
                printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n", shi, xu, shi, xu);
            }
        }
    }
    return 0;
}